/*
 * @Author       : xh
 * @Date         : 2022-10-11 10:20:18
 * @LastEditors: y001554
 * @FileName     :
 */
import { createApp } from 'vue'
// import '../dist/style.css';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// import { CitySelect } from '@@/plugins/index'
import mini from '@@/plugins/index'

import App from './App.vue'
import './style.css'
import Utils from '@@/utils/index'
import customerMixin from './mixin'
import { MpDialog } from '@@/plugins/index'
const cos = new Utils.cosUpload({
  request: async () => {
    return new Promise((rol, rej) => {
      //demo 实例代码替换真是接口
      setTimeout(() => {
        // debugger
        rol({
          tmpSecretId:
            'AKIDlEuGIRkUAI8EhL4tLOXeZIn_77od5725ZeO_QS3YFHGZbyynIHv107kVWV1dPavZ',
          tmpSecretKey: 'K8lwZKbi/Bx2f+6ZKQyQtScuAniDBo2TJQwGoDc4UFc=',
          sessionToken:
            'owtwkY4eowMfZ96upkekXCBisNDQjala565c81d9afe63bcb5cb87bc4590d35807h4uGzhUDl8RS1VbJlyCHgih7nreHHbRqGnTCMchWH89dNFothLyebthLqWOy8nU4KQAdKJttPgq5lIT1ptZeO4E6t0HAG1UTFG8KxMrkVv5s32dAsIG6siqi3mhXe2K4QqcG71O_wyS1yYKYTF9vUfyMQC6xgAC_w3doljwhafKOh80B6jva61yWE9dJ9DfsfKfeziIebpIvvxiR5ypghfNpkxHTRxlOoYBaqSIZywLjdQ6sFqnnPW4Ym2OiaLn25QE8hH_cbkRPky67AJxYm1NdezekPhZgRabqYlNNN_gGOSXJe2HqHk1rTlB6E2S8BqFuTQT2N-YlcK6c61oFFMaPUsj7Eglut7TVg42phVFlHD7NJVaU10fJHiWPg0ojSsDf8nEFToG8UhgiitAbksfDRUaPqn03ezndLpDEX6YtXhqc0izh9wi3mfKuB7o3QWk5oZN39P8jSzJUJUh0HgffNjT05h6V2gb5c2PSzwmLOk-mLEI3ZybBQJ5tGkpb4ZWTVq_cws5WgmvNZ5MuZO5ebKhggsE5mx2Jkc5W2p4yO6qzR1EBSq4jVUU8Ifg-p6ju23I4Yzd4hYekYPafx4slU46eiNVnd2dUakX-tPFUMfov72gkMkqylspoUjIqWbuMbLM82badjdeGaV-gRbDMaZ29NJIafqqCxV0mNOkidj9pYkL1S3jE7WWG8q7vyPW2efM1i4Yp7vm29mvwoH9p4Owf5gMd-JFM3_buI0v-XsYZ_dZ2DbaDXTUVPM-QrkSuwtL6DmLf4nOTpUgeOk-eTzS_i2Yukeiwu4IyDsmQwzlIIqB312gsKSCuSpgYKggknXw-qKimDlmjMRQT18jUvwxJ63N4ClNJpOU4Qw-ueHy0z7L6-4Tirm42p7oG70wS8nwQZxQ2n_QT20u1jmt_GsxW_GZa1dM7rNPwHRYpQR4RC2wG9UT3c03agtr6qiZRuPJBnuqpSMP9ApXf6xcAgKlkte_vB_yXHnft46xkXpAy88K1JUalVk4EKIlxP7zWK7CbVhL8w6Y4qrSgjZj4CCOlOYECY662AcKQiIzN9C8JzfBJS4hYLJwbC3c6a2jDXo--AI92_Ast1riDQ1YZBSwV9BbBdaV0oDE7Eg',
          expiration: '2023-06-12T06:18:03.000+00:00',
          startTime: 1686548883,
          expiredTime: 1686550683,
          tempFolder: 'YlWelfare/Dev/temp/'
        })
      }, 1500)
    })
  }
})
// console.log('cos', cos)

// import { Button, Tree } from '../lib/index';
// import mini from '../lib/index';
// const { Button } =Mini
// console.log(Button)
// import Button from '../build/button/index';
// const mini = require('../dist/my-lib.umd.js')
// import Tree from '../build/tree/index';
// import '../build/tree/style.css';
const app = createApp(App)
//   .component(CitySelect.name, CitySelect)

app.config.globalProperties.$cos = cos

//自定义扩展组件测试
app.config.globalProperties.$expandHooks = customerMixin
// 任何 'ion-' 开头的元素都会被识别为自定义元素
// app.config.compilerOptions.isCustomElement = (tag) => tag.includes('el-')

app.use(mini).use(ElementPlus).mount('#app')
